Integrand size = 30, antiderivative size = 61 \[ \int \cos ^{\frac {5}{2}}(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {2 C E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {2 B \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}+\frac {2 B \sqrt {\cos (c+d x)} \sin (c+d x)}{3 d} \]
[Out]
Time = 0.10 (sec) , antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {4149, 2827, 2719, 2715, 2720} \[ \int \cos ^{\frac {5}{2}}(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {2 B \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}+\frac {2 B \sin (c+d x) \sqrt {\cos (c+d x)}}{3 d}+\frac {2 C E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d} \]
[In]
[Out]
Rule 2715
Rule 2719
Rule 2720
Rule 2827
Rule 4149
Rubi steps \begin{align*} \text {integral}& = \int \sqrt {\cos (c+d x)} (C+B \cos (c+d x)) \, dx \\ & = B \int \cos ^{\frac {3}{2}}(c+d x) \, dx+C \int \sqrt {\cos (c+d x)} \, dx \\ & = \frac {2 C E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {2 B \sqrt {\cos (c+d x)} \sin (c+d x)}{3 d}+\frac {1}{3} B \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx \\ & = \frac {2 C E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {2 B \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}+\frac {2 B \sqrt {\cos (c+d x)} \sin (c+d x)}{3 d} \\ \end{align*}
Time = 0.22 (sec) , antiderivative size = 53, normalized size of antiderivative = 0.87 \[ \int \cos ^{\frac {5}{2}}(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {2 \left (3 C E\left (\left .\frac {1}{2} (c+d x)\right |2\right )+B \left (\operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+\sqrt {\cos (c+d x)} \sin (c+d x)\right )\right )}{3 d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(227\) vs. \(2(107)=214\).
Time = 11.12 (sec) , antiderivative size = 228, normalized size of antiderivative = 3.74
method | result | size |
default | \(-\frac {2 \sqrt {\left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (4 B \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}-2 B \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+B \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-3 C \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right )}{3 \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, d}\) | \(228\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.10 (sec) , antiderivative size = 125, normalized size of antiderivative = 2.05 \[ \int \cos ^{\frac {5}{2}}(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {2 \, B \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - i \, \sqrt {2} B {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + i \, \sqrt {2} B {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + 3 i \, \sqrt {2} C {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) - 3 i \, \sqrt {2} C {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right )}{3 \, d} \]
[In]
[Out]
Timed out. \[ \int \cos ^{\frac {5}{2}}(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \cos ^{\frac {5}{2}}(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\int { {\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right )\right )} \cos \left (d x + c\right )^{\frac {5}{2}} \,d x } \]
[In]
[Out]
\[ \int \cos ^{\frac {5}{2}}(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\int { {\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right )\right )} \cos \left (d x + c\right )^{\frac {5}{2}} \,d x } \]
[In]
[Out]
Time = 0.19 (sec) , antiderivative size = 53, normalized size of antiderivative = 0.87 \[ \int \cos ^{\frac {5}{2}}(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {2\,B\,\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{3\,d}+\frac {2\,C\,\mathrm {E}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{d}+\frac {2\,B\,\sqrt {\cos \left (c+d\,x\right )}\,\sin \left (c+d\,x\right )}{3\,d} \]
[In]
[Out]